﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsGame4
{
    class Explosion_InitialState : State
    {
        private static Explosion_InitialState instance;

        private Explosion_InitialState()
        {
            base.Name = "InitialState";
        }

        public override void enter(AIObject aiObject)
        {
        }

        public static Explosion_InitialState getInstance()
        {
            if (instance == null)
                instance = new Explosion_InitialState();
            return instance;
        }

        public override void execute(AIObject aiObject)
        {
            aiObject.StateMachine.changeState(Explosion_DestroyState.getInstance());
        }

        public override void exit(AIObject aiObject)
        {

        }

        public override Boolean onMessage(AIObject aiObject, Message message)
        {
            return false;
        }
    }
}
